package com.newmacys.user;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import org.springframework.beans.factory.InitializingBean;
import org.springframework.context.ApplicationContext;
import org.springframework.web.servlet.ModelAndView;
import org.springframework.web.servlet.mvc.BaseCommandController;

public class ViewUserController extends BaseCommandController implements InitializingBean {

	public void afterPropertiesSet() throws Exception {
		
	}

	protected ModelAndView handleRequestInternal(HttpServletRequest request,
			HttpServletResponse response) throws Exception {

		ApplicationContext app =  getApplicationContext();
		
		System.out.println("Using the Controller");
		ViewUserManager.processRequest(request, response, app);
		
		return null;
	}

}
